/*
map:get  根据值拿到嵌套值
map.deep-merge($map1, $map2) //=> map 合并
 map.set($map, $key, $value)
*/


// maps, 相当于 JavaScript 的 object，(key1: value1, key2: value2)
@use "sass:map";
$color:(color:blue);
$config: (a: (b: (c: d)));
$newmap:map.merge($config,$color);


$light-weights: ("lightest": 100, "light": 300);
$heavy-weights: ("medium": 500, "bold": 700);


div{
  content: map.get($config, a, b, c);
  color: map.get($color,color );
  width:  map.merge($light-weights, $heavy-weights);
}